package com.logicalthinking.socialmall.entity;

import com.github.chenlijia1111.utils.core.annos.PropertyCheck;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import javax.persistence.*;
import java.util.Date;

/**
 * 第三方登陆用户
 *
 * @author chenLiJia
 * @version 1.0
 * @since 2020-02-18 11:39:10
 **/
@ApiModel("第三方登陆用户")
@Table(name = "m_third_party_users")
@Setter
@Getter
@Accessors(chain = true)
public class ThirdPartyUsers {
    /**
     * 主键id
     */
    @ApiModelProperty("主键id")
    @PropertyCheck(name = "主键id")
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Integer id;

    /**
     * 第三方用户id
     */
    @ApiModelProperty("第三方用户id")
    @PropertyCheck(name = "第三方用户id")
    @Column(name = "openid")
    private String openid;

    /**
     * 用户id
     */
    @ApiModelProperty("用户id")
    @PropertyCheck(name = "用户id")
    @Column(name = "client_user_id")
    private Integer clientUserId;

    /**
     * 用户名
     */
    @ApiModelProperty("用户名")
    @PropertyCheck(name = "用户名")
    @Column(name = "username")
    private String username;

    /**
     * 用户昵称
     */
    @ApiModelProperty("用户昵称")
    @PropertyCheck(name = "用户昵称")
    @Column(name = "nickname")
    private String nickname;

    /**
     * 用户头像
     */
    @ApiModelProperty("用户头像")
    @PropertyCheck(name = "用户头像")
    @Column(name = "avatar")
    private String avatar;

    /**
     * 用户网址
     */
    @ApiModelProperty("用户网址")
    @PropertyCheck(name = "用户网址")
    @Column(name = "blog")
    private String blog;

    /**
     * 所在公司
     */
    @ApiModelProperty("所在公司")
    @PropertyCheck(name = "所在公司")
    @Column(name = "company")
    private String company;

    /**
     * 位置
     */
    @ApiModelProperty("位置")
    @PropertyCheck(name = "位置")
    @Column(name = "location")
    private String location;

    /**
     * 用户邮箱
     */
    @ApiModelProperty("用户邮箱")
    @PropertyCheck(name = "用户邮箱")
    @Column(name = "email")
    private String email;

    /**
     * 性别
     */
    @ApiModelProperty("性别")
    @PropertyCheck(name = "性别")
    @Column(name = "gender")
    private String gender;

    /**
     * 用户来源
     */
    @ApiModelProperty("用户来源")
    @PropertyCheck(name = "用户来源")
    @Column(name = "source")
    private String source;

    /**
     * 用户备注
     */
    @ApiModelProperty("用户备注")
    @PropertyCheck(name = "用户备注")
    @Column(name = "remark")
    private String remark;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    @PropertyCheck(name = "创建时间")
    @Column(name = "create_time")
    private Date createTime;


}